package com.lujianfei.productprice.ui.main;

import android.os.Parcel;
import android.os.Parcelable;

import com.orm.SugarRecord;
import com.orm.dsl.Column;
import com.orm.dsl.Table;

@Table(name = "ShopEntity")
public class ShopEntity extends SugarRecord implements Parcelable {

    @Column(name = "shopName")
    private String shopName;

    @Column(name = "remark")
    private String remark;

    public ShopEntity() {
    }

    protected ShopEntity(Parcel in) {
        shopName = in.readString();
        remark = in.readString();
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public static final Creator<ShopEntity> CREATOR = new Creator<ShopEntity>() {
        @Override
        public ShopEntity createFromParcel(Parcel in) {
            return new ShopEntity(in);
        }

        @Override
        public ShopEntity[] newArray(int size) {
            return new ShopEntity[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(shopName);
        dest.writeString(remark);
    }
}
